<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var user = {
            name:"dasd",
            age:23,
        }
        // console.log(user.name);
        // console.log(user.age);

        //利用解构赋值来简化,变量名称必须同名

        const {name,age} = user;
        console.log(name);

        const {abs,floor,ceil,random} = Math;
        console.log(random());
    </script>
</body>
</html>